From eebdc637e2bfbed7dcc5d7bbb214e12c9721798b Mon Sep 17 00:00:00 2001 From: tsteven4 Date: Tue, 18 Mar 2014 01:05:08 +0000 Subject: [PATCH] fix check for duplicate qualified names in gpx namespace declarations. --- gpsbabel/gpx.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gpsbabel/gpx.cc b/gpsbabel/gpx.cc index cc16df9c0..259e90e61 100644 --- a/gpsbabel/gpx.cc +++ b/gpsbabel/gpx.cc @@ -479,8 +479,8 @@ tag_gpx(const QXmlStreamAttributes& attr) QString prefix = ns[i].prefix().toString(); QString namespaceUri = ns[i].namespaceUri().toString(); if (!prefix.isEmpty() && (0 != prefix.compare("xsi"))) { - if (! gpx_namespace_attribute.hasAttribute(prefix)) { - gpx_namespace_attribute.append(prefix.prepend("xmlns:"), namespaceUri); + if (! gpx_namespace_attribute.hasAttribute(prefix.prepend("xmlns:"))) { + gpx_namespace_attribute.append(prefix, namespaceUri); } } } -- 2.30.2